<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>

<c:set var="ctx" value="${pageContext.request.contextPath}" />

<div class="container-fluid">
	<div class="tabbable" id="" >
		<ul class="nav nav-tabs">
			<li class="active" id="catgory"><a href="" data-toggle="tab" id="" >服务收益分类</a></li>
            <li id="add-category"><a href="" data-toggle="modal" id="" data-target="#upModal">添加分类</a></li>
		</ul>
	</div>
	<div class="tab-content">
		<div id="proCategoryList">
			<table class="table table-striped table-hover table-bordered">
			<thead>
				<tr>
					<th width=20%>服务分类id</th>
					<th width=40%>服务分类名称</th>
					<th width=20%>共有服务</th>
					<th width=20%>操作</th>
				</tr>
			</thead>
			<tbody ></tbody>
			</table>
		</div>
	</div>
</div>

<!--添加分类对话框  -->
<div id="upModal" class="modal hide fade" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-header" style="background-color:#ffaa00;">
			<button type="button" class="close" data-dismiss="modal"
				aria-hidden="true">×</button>
			<h4 style="margin: 0px;" id="myModalLabel">添加/修改分类</h4>
		</div>
		<div class="modal-body " style="overflow:inherit;">
			<form class="table form-horizontal" id="addMessage" style="position:relative;left:30px;">
				<div class="control-group">
					<label class="control-label " for="inputEmail" style="width:80px;padding-right:10px;"><span>*</span>分类名称	</label>					
					<input type="text" name="name" id="categoryName" class="required" />					
				</div>
			</form>
		</div>
		<div class="modal-footer">
					<div class="pull-left subtn">
						<button type="button" class="btn btn-primary addto-address" id="add-submit">添加</button>
						<button type="button" class="btn btn-primary update-address" id="add-submit">修改</button>
					</div>
		</div>
			
</div>

<c:if test="${env == 'production' }">
	<script type="text/javascript">
		seajs.use("${ctx}/assets/js-dist/admin/benefit-page");
	</script>
</c:if>
<c:if test="${env != 'production' }">
	<script type="text/javascript">
		seajs.use("${ctx}/assets/js/admin/benefit-page");
	</script>
</c:if>